# Contributor:
# Maintainer: nadvagauser <nadvagauser+alpine@proton.me>
pkgname=webp-pixbuf-loader
pkgver=0.2.4
pkgrel=1
pkgdesc="WebP Image format GdkPixbuf loader"
url="https://github.com/aruiz/webp-pixbuf-loader"
arch="all"
license="LGPL-2.0-or-later"
makedepends="
	gdk-pixbuf-dev
	libwebp-dev
	meson
	"
source="
	$pkgname-$pkgver.tar.gz::https://github.com/aruiz/webp-pixbuf-loader/archive/refs/tags/$pkgver.tar.gz
	"

install_if="gdk-pixbuf-loaders libwebp"

build() {
	abuild-meson -Db_lto=true . output
	meson compile -C output
}

check() {
	meson test --no-rebuild --print-errorlogs -C output
}

package() {
	DESTDIR="$pkgdir" meson install --no-rebuild -C output
}

sha512sums="
a367987a7c7ca4df594233a7b6fb281a1484026cdf8cb653d8513103e5d59e69d6ffaef1da8c6875be6d978b8a29251e5d89b6e2959e67057aae0f6cd7464b5e  webp-pixbuf-loader-0.2.4.tar.gz
"
